<!--
 * @Author: cqg 
 * @Date: 2020-11-12 16:45:11
 * @LastEditors: cqg
 * @LastEditTime: 2020-12-08 11:18:35
 * @Description: file content
-->
// 合同审批记录
<template>
  <div class="contractChange">
    <div class="title">审核记录</div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="createTime" label="审核时间" width="300" align="center" />
      <el-table-column prop="createName" label="审核人" width="300" align="center" />
      <el-table-column prop="remarks" label="审核意见" align="center" />
    </el-table>
  </div>
</template>

<script>
import { getContractApproveList } from '@/views/wy-lessor/rentalSociety/api/contract.js'

export default {
  name: 'contract-approve',
  data () {
    return {
      tableData: []
    }
  },

  methods: {
    //加载列表
    loadApproveList (contractId) {
      let lessorContractId = contractId;
      getContractApproveList(lessorContractId)
        .then(response => {
          if (response.data.code == 0) {
            this.tableData = response.data.data;
          }
          else {
            this.$alert("加载变更记录服务端服务错误" + response.code);
          }
        }
        )

    }
  }
}
</script>

<style lang="scss" scoped>
.contractChange {
  .title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 20px;
    color: #333;
  }
  /deep/ .el-table {
    .el-table__header {
      border-color: #dee2e6;
    }
    thead th {
      background-color: #fafafa;
      color: #333;
    }
    td {
      padding: 10px 0;
    }
  }
}
</style>
